//---------------------------------------------------------------------------

#ifndef TFileH
#define TFileH
#include <classes.hpp>
#include <vector>
using namespace std;
//---------------------------------------------------------------------------
struct stAd{
    UINT32 iAdCnt;
    UINT32 iAdOffset;
};
typedef struct wvfmt{
    //UINT32 iAdTypeCnt;
    UINT32 iAd1Cnt;
    UINT32 iAd2Cnt;
    UINT32 iDirCnt;
    UINT32 iWeightCnt;
}stWvFmt;
class TWaveFile{
  public:
    int SaveWave(const AnsiString FileName, const vector<int> FstAdBuf, const vector<int> SecAdBuf, const vector<int> ThirdAdBuf, const vector<int> FourAdBuf);
    int LoadWave(const AnsiString FileName, vector<int> &FstAdBuf,    vector<int> &SecAdBuf,  vector<int> &ThirdAdBuf,  vector<int> &FourAdBuf);
    
    TWaveFile();
    ~TWaveFile();
  private:
    TFileStream* m_filestrm;

};
#endif
